package com.xz;

import com.xz.printer.BinaryTrees;
import com.xz.tree.AVLTree;
import org.junit.Test;

import java.util.Comparator;

/**
 * @author XZ
 * @create 2021-06-23 20:33
 */
public class Main {
    public static void main(String[] args) {
        Integer[] data = new Integer[]{
                85,19,69,3,7,99,95,2,1,70,44,58,11,21,14,93,57,4,56
        };
        AVLTree<Integer> avl = new AVLTree<>();

        for (int i = 0; i < data.length; i++) {
            avl.add(data[i]);
        }
        BinaryTrees.println(avl);
    }
}
